package com.imooc.bigdata.chapter08_my.utils

import org.apache.spark.sql.SparkSession

object DateUtils {

  //返回table+time的名字
  def getTableName (tablename:String,spark:SparkSession): String ={

    val time = spark.sparkContext.getConf.get("spark.time") //spark框架只识别spark开头的
    tablename + "_" + time
  }

}
